import axios from '../axios'
  //禁用用户
 export const disableUserById=(data:any)=> {
    return axios.post(`/userinfo/updataStatus`, data)
 }
 //启用用户
 export const enableUserById=(data:any)=> {
    return axios.post(`/userinfo/updataStatus`, data)
 }
  //用户列表
 export const getUserinfoList=(data:any)=> {
    return axios.post('/userinfo/page', data)
  }
  //查询用户详情
 export const getUserinfoById=(id:any)=> {
    return axios.get(`/userinfo/getById/${id}`)
  }
  //查询用户消费
 export const getConsumeInfo=(id:any)=> {
    // return axios.get(`/userinfo/getConsumeInfo/${id}`)
  }

  //获取最近订单
 export const getRecentlyOrders=(id:any)=> {
    return axios.post(`/chargeOrder/getRecentlyOrders/${id}`)
  }


  